﻿using MX.Core.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VC.Admin.Core
{
    public class AppConfig : FileConfiguration
    {
        #region 获取默认实例

        /// <summary>
        /// 获取配置
        /// </summary>
        public static AppConfig Default
        {
            get
            {
                return Settings.GetFrom<AppConfig>("API.config");
            }
        }

        #endregion


        /// <summary>
        /// Redis 缓存名称
        /// </summary>
        /// <value>The length of the dealer report queue.</value>
        public string FFmpegExecutablePath
        {

            get
            {
                return this.GetData<string>("FFmpegExecutablePath", "");
            }
            set
            {
                this["FFmpegExecutablePath"] = value;
            }
        }

        public string ResHost
        {

            get
            {
                return this.GetData<string>("ResHost", "");
            }
            set
            {
                this["ResHost"] = value;
            }
        }

        public string FFmpegCodec
        {

            get
            {
                return this.GetData<string>("FFmpegCodec", "");
            }
            set
            {
                this["FFmpegCodec"] = value;
            }
        }

        public string FFmpegParameter
        {

            get
            {
                return this.GetData<string>("FFmpegParameter", "");
            }
            set
            {
                this["FFmpegParameter"] = value;
            }
        }
    }
}